#include <sys/types.h>
#include <sys/stat.h>
#include <share.h>
#include <string>
#include "io.h"
#include <windows.h>


BOOL GetLocalDate(char *szDate,  DWORD size);

BOOL GetLocalDate(char *szDate,  DWORD size)
{
	SYSTEMTIME time;    // struct of SYSTEMTIME
	GetLocalTime(&time);
	sprintf_s(szDate, size, "%04ld/%02ld/%02ld,%02ld:%02ld:%02ld.%03ld", time.wYear, time.wMonth, 
		time.wDay, time.wHour, time.wMinute, time.wSecond, time.wMilliseconds);

	return TRUE;
}